<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Vue + TS</title>

    <style lang="scss">
      html,
      body {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        min-width: 100%;
      }
      #app-loading {
        position: fixed;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: column;
        z-index: 9999;
      }
      .loading-text {
        font-size: 16px;
        font-weight: 600;
        padding-top: 20px;
        color: #000;
      }
      .loading-spinner {
        width: 46px;
        height: 46px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: #409eff;
        animation: spin 0.8s linear infinite;
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }
      /* 全局加载动画 */
      .global-loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        flex-flow: column;

        align-items: center;
        z-index: 9999;

        .loading-icon {
          animation: rotating 2s linear infinite;
          font-size: 3.5rem;
          color: #fff;
        }
      }

      @keyframes rotating {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div id="app-loading">
        <div class="loading-spinner"></div>
        <div class="loading-text"><span>火云山后台</span></div>
      </div>
    </div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
